home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / src / dme / dgkasl.new.lzh / ASLmods3_defs.h next >
Text File  |  1991-11-15  |  2KB  |  44 lines

  1. /*  Matt,
  2.  
  3.     Here's an update of the ASL file requester mods I sent to you a few
  4.     months ago. I've made a few enhancements:
  5.  
  6.     1.) The size and placement of the ASL requester is saved as part of
  7.     the DME.CONFIG file. This required expanding the data saved from
  8.     Ep. The additions to DEFS.H are included below. It's probably
  9.     best to delete the old DME.CONFIG before running the new DME,
  10.     but it won't hurt ASL if you pass it bad coordinates and
  11.     loadconfig() doesn't choke on the old, smaller config file.
  12.  
  13.     2.) If you have DME open on a public screen that is not the default,
  14.     then the ASL requesters do not appear in the proper place. This
  15.     has been fixed with the addition of a few tags. However, each
  16.     requester still creates it's own IDCMP. (It just occured to me
  17.     that some of the "normal" requester might need some work also.)
  18.  
  19.     3.) I added a kludge: fixdirname(). This puts an initial directory
  20.     path into the requester so that it displays something in the
  21.     "Drawer" gadget when it's opened. The splitpath() function
  22.     always seems to return a null DIR string when using Ep->Name. I
  23.     find the DIR string by using NameFromLock() on Ep->dirlock. This
  24.     call is 2.0 only, so I didn't add it to the ARP requesters.
  25.     (Actually, I removed the ARP commands from my copy of DME.)
  26.  
  27.     The other file in this archive is a new filereq.c. What follows are
  28.     the changes to defs.h.
  29.  
  30.     --fran
  31.  */
  32.     int     TPen;        /* The old LAST element in the config area */
  33.  
  34.     /* ADD THE FOLLOWING 4 LINES TO DEFS.H, AFTER TPen */
  35.  
  36.     short   ASLleft;        /* NEW: save position of ASL requester */
  37.     short   ASLtop;        /* NEW: save position of ASL requester */
  38.     short   ASLwidth;        /* NEW: save position of ASL requester */
  39.     short   ASLheight;        /* NEW: save position of ASL requester */
  40.  
  41.     char    EndConfig;
  42. } ED;
  43.  
  44.